package game.objects.staticObjects;

import engine.game.Manager;
import engine.graphics.Color4f;
import engine.graphics.TextureManager;
import engine.graphics.Vertex2f;
import engine.objects.ContainerObject;

public class Background_BeachSkyline extends ContainerObject{

	private static final long serialVersionUID = 1L;
	
	public Background_BeachSkyline(Manager m) {
		super(m, 0, 197, m.getLevel().WIDTH, 128, false, true); 
		init(); 
	}
	
	public void init(){
		this.changeColor(new Color4f(1,1,1,1));
		this.subdivide(2048, 128, "background_skyline", "backgrounds",
			new Vertex2f[]{new Vertex2f(0,256)});
//		TexturedObject.addNewAnimationToObject(this, "background_skyline", "backgrounds", 
//				new Vertex2f[]{new Vertex2f(2048, 256)}, 
//				new Vertex2f[]{new Vertex2f(0, 256)}, 0);
	}
	
	public void render(){
		if(this.isTextured())
			TextureManager.bindTexture("backgrounds"); 
		super.render(); 
	}
}
